mirror of https://github.com/akelge/vim
locals
This commit is contained in:
parent
1f1f60bb74
commit
ab8bf6501a
|
@ -34,3 +34,8 @@ colorscheme freya
|
||||||
" Emacs like indenting. Pressing Tab indents line
|
" Emacs like indenting. Pressing Tab indents line
|
||||||
set indentkeys=0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
|
set indentkeys=0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
|
||||||
set cinkeys=0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
|
set cinkeys=0{,0},0),:,0#,!^F,o,O,e,!<Tab>,!^F
|
||||||
|
|
||||||
|
" User customizations are held in file ~/.vim/gvimrc.local
|
||||||
|
if filereadable($HOME."/.vim/gvimrc.local")
|
||||||
|
source $HOME/.vim/gvimrc.local
|
||||||
|
endif
|
||||||
|
|
22
vim/vimrc
22
vim/vimrc
|
@ -69,9 +69,10 @@ colorscheme wombat256
|
||||||
" """""""""
|
" """""""""
|
||||||
" User Info
|
" User Info
|
||||||
" """""""""
|
" """""""""
|
||||||
let g:shortname = 'andre'
|
" PLEASE DEFINE THESE IN vimrc.local
|
||||||
let g:fullname = 'Andrea Mistrali'
|
" let g:shortname = 'login'
|
||||||
let g:email = 'am@am.cx'
|
" let g:fullname = 'Full Name'
|
||||||
|
" let g:email = 'email address'
|
||||||
|
|
||||||
" """""""""""""""""""""""""
|
" """""""""""""""""""""""""
|
||||||
" COMPLETION & INDENTATION
|
" COMPLETION & INDENTATION
|
||||||
|
@ -79,12 +80,12 @@ let g:email = 'am@am.cx'
|
||||||
|
|
||||||
" Function that returns tab if called on an "empty" line
|
" Function that returns tab if called on an "empty" line
|
||||||
" C-N elsewhere
|
" C-N elsewhere
|
||||||
function! CleverTab()
|
" function! CleverTab()
|
||||||
if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
|
" if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
|
||||||
return "\<Tab>"
|
" return "\<Tab>"
|
||||||
else
|
" else
|
||||||
return "\<C-N>"
|
" return "\<C-N>"
|
||||||
endfunction
|
" endfunction
|
||||||
" map the function to Tab
|
" map the function to Tab
|
||||||
" inoremap <C-\> <C-R>=CleverTab()<CR>
|
" inoremap <C-\> <C-R>=CleverTab()<CR>
|
||||||
set completeopt=longest
|
set completeopt=longest
|
||||||
|
@ -131,8 +132,7 @@ let NERDCreateDefaultMappings=1
|
||||||
" """""""""""
|
" """""""""""
|
||||||
" Keymappings
|
" Keymappings
|
||||||
" """""""""""
|
" """""""""""
|
||||||
let mapleader = "\\"
|
let g:mapleader = ","
|
||||||
"let mapleader = ","
|
|
||||||
nnoremap <silent> <Leader>l :set list!<CR>
|
nnoremap <silent> <Leader>l :set list!<CR>
|
||||||
nnoremap <silent> <Leader>f :set fullscreen!<CR>
|
nnoremap <silent> <Leader>f :set fullscreen!<CR>
|
||||||
nnoremap <silent> <Leader>x :set paste!<CR>
|
nnoremap <silent> <Leader>x :set paste!<CR>
|
||||||
|
|
Loading…
Reference in New Issue