Last active
February 29, 2016 02:07
-
-
Save ippa/06e1399845bf4ea17847 to your computer and use it in GitHub Desktop.
.vimrc
This file contains hidden or 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
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