1. LK4D4
  2. dotfiles

Source

dotfiles / vimrc.local

" installed plugins:
" minibufexpl, nerdtree, taglist, ctags
filetype plugin indent on
syntax on

set paste

set expandtab shiftwidth=4 softtabstop=4 tabstop=4
set list
set listchars=tab:▹\ ,eol:↵,trail:▿
nmap <leader>l :set list! relativenumber!<CR>
nmap <leader>p :set list! number!<CR>

set incsearch hlsearch smartcase
set gdefault
set showmatch

set modeline nowrap
"set relativenumber
set number
au BufEnter *.hs compiler ghc
let g:haddock_browser="/usr/bin/chromium"
let g:haddock_browser_callformat="%s file://%s >/dev/null 2>&1 &"
let haskell_indent_case=4
let haskell_indent_if=2


set colorcolumn=83
set ttyfast
set wildmenu
set background=dark

if has('gui_running')
    set guioptions=a
    colorscheme solarized
    set guifont=Terminus\ 11
else
    set t_Co=16
    colorscheme anotherdark
endif

" Press space to clear search highlighting
nnoremap <silent> <Space> :noh<CR>

" Map toggling paste mode
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set invpaste

noremap <C-Tab> :bnext<CR>
noremap <C-PageUp> :bprev<CR>
nnoremap <leader>n :NERDTreeToggle<CR>
nnoremap <leader>p :TlistToggle<CR>
nnoremap <leader>b :MiniBufExplorer<CR>
nnoremap <leader>t :TMiniBufExplorer<CR>
inoremap <C-j> <C-x><C-o>

autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif

ab shabang #!/usr/bin/python
ab utf8 # -*- coding: utf-8 -*-
ab ifmain if __name__ == "__main__":