Skip to content

Instantly share code, notes, and snippets.

@Tyderion
Last active December 18, 2015 01:39
Show Gist options
  • Save Tyderion/5705503 to your computer and use it in GitHub Desktop.
Save Tyderion/5705503 to your computer and use it in GitHub Desktop.
My VIM-Configratuion stuff

Some Interesting Stuff: Stackoverflow VIM Tricks

Must-Have VIM-Plugins

Maybe Later:

.vimrc:

set hidden
set number
set ts=4
set nowrap
set backspace=indent,eol,start
set copyindent
set shiftwidth=4
set shiftround
set showmatch
set ignorecase
set smartcase
set hlsearch
set incsearch
set history=1000
set undolevels=1000
set wildignore=*.swp,*.bak,*.pyc,*.class
set title
set visualbell
set noerrorbells
set nobackup
set noswapfile
filetype plugin indent on
if has('autocmd')
  autocmd filetype python set expandtab
endif
set list
set listchars=tab:>.,trail:.,extends:#,nbsp:.
call pathogen#infect()
call pathogen#helptags()
nnoremap . :
map <C-k><C-b> :NERDTreeToggle<enter> " Control-K + Control-B Toggle NerdTree
cmap w!! w !sudo tee >/dev/null %
let mapleader=","
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
" Use Q for formatting the current paragraph (or selection)
vmap Q gq
nmap Q gqap


" Don't use arrow keys!!
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
nnoremap j gj
nnoremap k gk
" Window navigation with ctrl-h/j/k/l instead of ctrl+w + h/j/k/l
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment