1. Andrei Sosnin
  2. .vim


Andrei Sosnin  committed 95a630e

Some settings tweaking (remapped F-keys + added .tac as a python extension)

  • Participants
  • Parent commits e2a0fe5
  • Branches default

Comments (0)

Files changed (1)

File vimrc

View file
 let s:cpo_save=&cpo
 set cpo&vim
 map! <S-Insert> <MiddleMouse>
-nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR>
 map <S-Insert> <MiddleMouse>
 let &cpo=s:cpo_save
 unlet s:cpo_save
 if has("gui_running")
   highlight SpellBad term=underline gui=undercurl guisp=palegreen
   if has("gui_gtk2")
-      set guifont=Liberation\ Mono\ 10
+      set guifont=DejaVu\ Sans\ Mono\ 10
 " infect with pathogen
 map <c-k> <c-w>k
 map <c-l> <c-w>l
 map <c-h> <c-w>h
+let mapleader = ","
 noremap <F1> <ESC>
-let mapleader = ","
+" Toggle line numbering
+nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR>
+" toggle NERDTree
+nnoremap <F3> :NERDTreeToggle<cr>
+" find current file in NERDTree
+nnoremap <F4> :NERDTreeFind<cr>
+" toggle Gundo
+nnoremap <F5> :GundoToggle<cr>
+" run Pep8
+let g:pep8_map='<F6>'
 " remove newlines
 nnoremap <leader>j a<CR><Esc>k$
 " switch off hilighting
 nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
 " copy to X copy buffer
 nnoremap <leader>y "+y
-" toggle Gundo
-nnoremap <F8> :GundoToggle<cr>
-" run pyflakes
-"nnoremap <F6> :PyflakesUpdate<cr>
 " jump to next/prev change and center screen
 nnoremap <leader>[ [czz
 nnoremap <leader>] ]czz
 " autowrite on focus loss
 au FocusLost * :wa
 " `gf` jumps to the filename under the cursor.  Point at an import statement
 " and jump to it!
 python << EOF
         vim.command(r"set path+=%s" % (p.replace(" ", r"\ ")))
+let pymode_rope_vim_completion=1
 python << EOF
 import sys
 source ~/.vim/ftplugin/python/ropevim/ropevim.vim
+au BufNewFile,BufRead *.tac set filetype=python
 set autoindent
 set backspace=indent,eol,start
 if exists('+colorcolumn')
   highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9
   match OverLength /\%>80v.\+/
 set clipboard=unnamed
 set encoding=utf-8
 set expandtab