This commit is contained in:
simonec 2010-11-12 11:59:42 +00:00
parent 1f1f60bb74
commit ab8bf6501a
2 changed files with 16 additions and 11 deletions

View File

@ -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

View File

@ -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>