Last active
September 30, 2015 08:18
-
-
Save kalleth/1751115 to your computer and use it in GitHub Desktop.
my vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <f2> :bnext<CR> | |
nnoremap <f1> :bprevious<CR> | |
set wildmode=list:longest,full "pretty finding | |
set noswapfile | |
set number | |
set smartindent | |
set tabstop=8 | |
set shiftwidth=2 | |
set expandtab | |
set softtabstop=2 | |
set autoindent | |
nnoremap <S-down> :bnext<CR> | |
nnoremap <S-up> :bprevious<CR> | |
nnoremap <A-up> :wincmd k<CR> | |
nnoremap <A-down> :wincmd j<CR> | |
nnoremap <A-left> :wincmd h<CR> | |
nnoremap <A-right> :wincmd l<CR> | |
inoremap <D-3> # | |
map <Help> <Esc> | |
map! <Help> <Esc> | |
set mouse=a | |
set laststatus=2 | |
set linespace=1 | |
set guioptions-=m "remove menu bar | |
set guioptions-=T "remove toolbar | |
set guioptions-=r "remove right scrollbar | |
set guioptions-=L "remove left scrollbar | |
set guifont=Liberation\ Mono:h12 | |
map <F8> :set invhlsearch hlsearch?<CR> | |
let g:miniBufExplSplitBelow=1 | |
let g:miniBufExplVSplit = 25 | |
filetype off | |
if has("autocmd") | |
fun! <SID>FixMiniBufExplorerTitle() | |
if "-MiniBufExplorer-" == bufname("%") | |
setlocal statusline=| | |
setlocal statusline+=\[Buffers\] | |
endif | |
endfun | |
au BufWinEnter * | |
\ let oldwinnr=winnr() | | |
\ windo call <SID>FixMiniBufExplorerTitle() | | |
\ exec oldwinnr . " wincmd w" | |
endif | |
au FileType xhtml,xml so ~/.vim/ftplugin/html_autoclosetag.vim | |
filetype on | |
filetype plugin indent on | |
map <MiddleMouse> <Nop> | |
imap <MiddleMouse> <Nop> | |
map <2-MiddleMouse> <Nop> | |
imap <2-MiddleMouse> <Nop> | |
map <3-MiddleMouse> <Nop> | |
imap <3-MiddleMouse> <Nop> | |
map <4-MiddleMouse> <Nop> | |
imap <4-MiddleMouse> <Nop> "my mouse is retarded and middle-clicks by itself, so i disabled it. | |
syntax on | |
set background=dark | |
colorscheme jellybeans " pretty | |
"set noballooneval | |
set nomousehide | |
call pathogen#infect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment