Updated README and vimrc

This commit is contained in:
2015-06-05 15:58:24 +02:00
parent 89b4a84d24
commit 5d1b40401b
2 changed files with 24 additions and 24 deletions
+8 -19
View File
@@ -8,30 +8,11 @@ Local vimrc (.lvimrc)
In addition, .lvimrc files can be placed in project folder to allow for project specific vim configuartions
Create symlinks:
ln -s ~/.vim/vimrc ~/.vimrc
Fetch submodules:
cd ~/.vim
git submodule update --init --recursive
To upgrade all modules run:
git submodule foreach git pull origin master --recursive(?)
To upgrade a single plugin run:
cd ~/.vim/bundle/fugitive
git pull origin master
To fix colour (/lack of) problems add the following lines to ~/.bashrc:
export TERM="xterm-256color"
Install a new submodule plugin:
cd ~/.vim
git submodule add git://github.com/tpope/vim-fugitive.git bundle/fugitive
git submodule init && git submodule update
Installing a local copy of Vim:
cd ~/.vim/vim/
make distclean
@@ -64,3 +45,11 @@ Setting enviroment variables in .cshrc for VIM:
setenv VIM "~/.vim/vim/src/vim"
setenv VIMRUNTIME "~/.vim/vim/runtime"
setenv EDITOR 'vim'
Installing YouCompleteMe (YCM):
# Set pyenv python to system version to avoid a broken compilation
pyenv global system
# A workaround to the lack of a "python2" executable with pyenv
cd /usr/bin && sudo ln -s python python2
# Run the install script from the YCM directory
./install.sh --clang-completer --system-libclang
+16 -5
View File
@@ -32,14 +32,20 @@ Plugin 'nvie/vim-togglemouse'
Plugin 'benmills/vimux'
Plugin 'julienr/vimux-pyutils'
Plugin 'embear/vim-localvimrc'
Plugin 'tpope/vim-surround'
call vundle#end() " required
filetype plugin indent on " required
filetype on
filetype plugin on
filetype indent on
" ====================================
" General vim settings
" ====================================
" Set the default shell
set shell=zsh\ -l
" Set spell checker language
set spelllang=en_gb
" Allow the use of the mouse in vim
set mouse=a
@@ -88,10 +94,6 @@ set ignorecase
" Show search result before moving to it
set incsearch
" Quickly edit/reload the vimrc file
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
" ====================================
" Solarized settings
" ====================================
@@ -234,6 +236,11 @@ set completeopt=preview,preview
" Limit popup menu height
set pumheight=20"
" ====================================
" YouCompleteMe Settings
" ====================================
let g:ycm_path_to_python_interpreter = '/usr/bin/python'
" ====================================
" VIMUX Commands
" ====================================
@@ -335,6 +342,10 @@ nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
" Quickly edit/reload the vimrc file
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
" ====================================
" Source local vim script for the current machine