diff --git a/.vimrc b/.vimrc index e87806b..f8a0e63 100644 --- a/.vimrc +++ b/.vimrc @@ -3,7 +3,11 @@ set nocompatible "VIM over VI " NeoBundle conf {{{ if has('vim_starting') - set runtimepath+=~/.vim/bundle/neobundle.vim/ + if has('win32') + set runtimepath+=$HOME/vimfiles/bundle/neobundle.vim/ + else + set runtimepath+=$HOME/.vim/bundle/neobundle.vim/ + endif endif call neobundle#begin(expand('~/.vim/bundle/')) @@ -40,7 +44,6 @@ NeoBundle "scrooloose/nerdtree" NeoBundle "scrooloose/syntastic" NeoBundle "sjl/gundo.vim" NeoBundle "skammer/vim-css-color" -NeoBundle "taylor/ctags.vim" NeoBundle "terryma/vim-multiple-cursors" NeoBundle "tpope/vim-fugitive" NeoBundle "tpope/vim-repeat" @@ -80,9 +83,11 @@ set hidden "Keep hidden windows set history=1000 "Keep 1000 lines of command line history set laststatus=2 "Always show statusbar set lazyredraw "Don't update screen while executing macros -if !has('win32') +try set listchars=tab:▸―,trail:· "Strings to use in 'list' mode. list is off by default. -endif +catch /E474:/ + set listchars=tab:>-,trail:. "Failsafe for Windows and non-unicode envs +endtry set number "show line numbers " Show ruler and set format of statusline @@ -512,7 +517,7 @@ if $TERM == 'linux' && !has('gui_running') colorscheme pablo endif if has('win32') - source $VIM/vimfiles/winrc.vim + source $HOME/vimfiles/winrc.vim endif "}}} " vim:ts=4:sw=4:wrap:fdm=marker: diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..12fc43c --- /dev/null +++ b/README.rst @@ -0,0 +1,17 @@ +vim config +========== + +This repository contains my Vim config just for convenience in making the copy +of it. + +After cloning, it is necessary to install NeoBundle_. Possibly the easiest way +to make it (as described in the NeoBundle README file) is like this: + +.. code::shell-session + + $ curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh + +And than, just make the symlink to the `.vimrc` file to the home directory. + + +.. _NeoBundle: https://github.com/Shougo/neobundle.vim diff --git a/winrc.vim b/winrc.vim index a13f252..05283c6 100644 --- a/winrc.vim +++ b/winrc.vim @@ -1,6 +1,5 @@ set fileencoding=utf-8 set guifont=DejaVu_Sans_Mono:h9:cEASTEUROPE -set listchars=tab:>-,trail:. set guioptions=ceg set enc=utf-8