Skip to content

Instantly share code, notes, and snippets.

@ikawka
Last active August 29, 2015 14:03
Show Gist options
  • Save ikawka/a518ed6f9554fa8f70ed to your computer and use it in GitHub Desktop.
Save ikawka/a518ed6f9554fa8f70ed to your computer and use it in GitHub Desktop.
Vim+NERDTree+PowerLine Configuration
execute pathogen#infect()
syntax on
filetype plugin indent on
python from powerline.vim import setup as powerline_setup
python powerline_setup()
python del powerline_setup
set guifont=Inconsolata\ for\ Powerline:h18
set background=dark
colorscheme macvim "delek
set number
set laststatus=2 " Always display the statusline in all windows
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
set nowrap
set tabstop=4 shiftwidth=4 expandtab
autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
"autocmd BufEnter * NERDTreeMirror
"NERDTree shortcut
function OpenNERDTree()
execute ":NERDTreeToggle"
endfunction
command -nargs=0 OpenNERDTree :call OpenNERDTree()
nmap <ESC>t :OpenNERDTree<CR>
NERDTree
requires: pathogen.vim
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle
git clone https://github.com/scrooloose/nerdtree.git
PowerLine Status bar
https://powerline.readthedocs.org/en/latest/overview.html#installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment