Skip to content

Instantly share code, notes, and snippets.

@ippa
Last active February 29, 2016 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ippa/06e1399845bf4ea17847 to your computer and use it in GitHub Desktop.
Save ippa/06e1399845bf4ea17847 to your computer and use it in GitHub Desktop.
.vimrc
autocmd FileType html setlocal indentkeys-=*<Return>
let g:html_indent_inctags = "html,body,head,tbody"
set bs=2
set smartindent autoindent smarttab
set shiftwidth=2
set background=dark
set ru
set tabstop=2
set expandtab
set nowrap
set textwidth=230
set encoding=utf8
set fileencoding=utf8
set linebreak
set display+=lastline
set viminfo=%,'50,\"100,:100,n~/.viminfo
set history=50
set t_Co=256
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
" customize vim file explorer
"let g:netrw_browse_split = 4
"let g:netrw_altv = 1
let g:netrw_liststyle = 3
let g:netrw_winsize = 20
let g:netrw_banner = 0
map <C-o> :Vexplore<CR> " open vim file explorer with CTRL+O (default windows open file)
inoremap ii <ESC> " back to normal mode
set gdefault " %s/foo/bar/ --> %s/foo/bar/g
" SHIFT+Arrowkeys to jump between windows. Oldschool CTRL+w is chrome's closeshortcut :)
nmap <silent> <S-Up> :wincmd k<CR>
nmap <silent> <S-Down> :wincmd j<CR>
nmap <silent> <S-Left> :wincmd h<CR>
nmap <silent> <S-Right> :wincmd l<CR>
"
" mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
" git clone https://github.com/sukima/xmledit.git ~/.vim/bundle/xmledit
"
call pathogen#infect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment