Vim
- Vim Tips and Tricks
- Pathogen, vim plugin management
- Tutorial
- mkdir -p ~/.vim/autoload ~/.vim/bundle
- save pathogen.vim to ~/.vim/autoload
- add "execute pathogen#infect(), syntax on, filetype plugin indent on" in ~/.vimrc
- Ctags, create connection between tags and functions
- Tutorial
- add "set tags=tags;/" in ~/.vimrc, make searching tags from subdirectory
- ctags -R ., create tags
- vim -t tag, access the file containing the specific tag
- ctrl+], jump to the tag underneath the cursor
- ctrl+t, jump back up in the tag stack
- SuperTag, tag menu
- NerdTree, a file system explorer
- :NERDTree, turn on the file system explorer
- TagBar, browser tags in a file
- add "nmap <F8> :TagbarToggle<CR>" in ~/.vimrc
- Fn+F8, turn on tag explorer
- Autocomplete
- C++
- Java
- Install Eclipse Oxygen use the .tar.gz eclipse distribution, not from GUI installer
- Install Eclim with GUI installer
- Start eclimd installed in $EclipseHome/Contents/Eclipse
- mkdir project
- cd project
- Open vim, type in ":ProjectCreate . -n java", a project is created, .project and .classpath are created
- mkdir src
- Open .classpath with vim, type in ":NewSrcEntry ./src"
- Write code under src folder
- Python
- Jedi-Vim
- let g:SuperTabDefaultCompletionType = "context"
- let g:jedi#popup_on_dot = 0
- let g:jedi#auto_initialization = 0
- let g:jedi#auto_vim_configuration = 0
- let g:jedi#use_tabs_not_buffers = 1
- let g:jedi#use_splits_not_buffers = "left"
- let g:jedi#popup_on_dot = 0
- let g:jedi#popup_select_first = 0
- let g:jedi#show_call_signatures = "1"
- set completeopt-=preview
- ctags -R ., create tag file
- tab, popup variables
Reference