" Switch Caps Lock to Esc - add this to .xinitrc/.xsession/etc: " setxkbmap -option caps:escape " " On win create CapsLock2Esc.ScrollLock2CapsLock.4all.reg, and run it: " REGEDIT4 " [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] " "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00 "set nocompatible " Default in Debian "set modeline " This may give security issues set nu ru showcmd " Line number, ruler etc. set fdc=3 fdn=2 fdm=indent " Folding syn sync fromstart " Syntax set ts=2 sw=2 ai si " Tabs "set et " Use spaces instead of for Python set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<,nbsp:⋅ nmap l :set list! nmap s :syn sync fromstart nmap y "+y nmap p "+p nmap d "+d set hls incsearch set mouse=a " Enable mouse usage (all modes) "colorscheme slate colorscheme desert if has("gui_running") " GUI is running or is about to start. set guioptions-=T "remove toolbar set guifont=Monospace\ 9 set lines=80 columns=94 let g:indent_guides_enable_on_vim_startup = 1 endif "Move a line of text using ALT+[jk] or Comamnd+[jk] on mac nmap mz:m+`z nmap mz:m-2`z vmap :m'>+`mzgv`yo`z vmap :m'<-2`>my` :bprevious nmap :bnext nmap :bprevious! nmap :bnext! " The .plan filetype. augroup filetypedetect au BufNewFile,BufRead *.plan setf plan augroup END " Auto new line after 78't column. Mark stuff beond as error. "autocmd FileType * setlocal textwidth=78 "autocmd BufWinEnter * call matchadd('ErrorMsg', '\%>'.&l:textwidth.'v.\+', -1) " Indent Guides plugin " http://www.vim.org/scripts/script.php?script_id=3361 let g:indent_guides_auto_colors = 0 autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=#373737 guifg=#505050 ctermbg=3 autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=#3f3f3f guifg=#505050 ctermbg=4 " Turn on ftplugins like " MatchTag http://www.vim.org/scripts/script.php?script_id=3818 " Matchit http://www.vim.org/scripts/script.php?script_id=39 filetype plugin on