Compare commits
4 Commits
a99ac4ac27
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b21623e22 | |||
| 23895200a8 | |||
| b499cd5223 | |||
| a355dcd4b6 |
@@ -1,11 +1,7 @@
|
||||
# Mike Bell's VIM settings
|
||||
|
||||
Installation:
|
||||
|
||||
```sh
|
||||
git clone https://git.movida.biz/bell/dotvim.git ~/.vim
|
||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||
```
|
||||
Create symlinks:
|
||||
```sh
|
||||
ln -s ~/.vim/vimrc ~/.vimrc
|
||||
git clone https://git.movida.biz/bell/dotvim.git ~/.vim && ~/.vim/install.sh
|
||||
```
|
||||
|
||||
18
install.sh
Executable file
18
install.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Symlink vimrc
|
||||
if [ ! -f ~/.vimrc ]; then
|
||||
ln -s ~/.vim/vimrc ~/.vimrc
|
||||
echo "Created ~/.vimrc symlink"
|
||||
fi
|
||||
|
||||
# Install Vundle
|
||||
if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
|
||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||
echo "Vundle installed"
|
||||
fi
|
||||
|
||||
# Install all plugins headlessly
|
||||
vim +PluginInstall +qall
|
||||
echo "Done"
|
||||
11
vimrc
11
vimrc
@@ -11,7 +11,6 @@ call vundle#begin()
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
|
||||
" Plugins
|
||||
Plugin 'morhetz/gruvbox'
|
||||
Plugin 'preservim/nerdtree'
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'tpope/vim-surround'
|
||||
@@ -43,18 +42,16 @@ set guioptions=
|
||||
set showmode
|
||||
set showtabline=0
|
||||
set smartcase
|
||||
set autochdir
|
||||
set number
|
||||
set ruler
|
||||
set wrap linebreak nolist
|
||||
set textwidth=80
|
||||
set cursorline
|
||||
autocmd FileType text,markdown setlocal textwidth=80
|
||||
|
||||
" Force 256 color support
|
||||
set t_Co=256
|
||||
|
||||
" Enable syntax highlighting
|
||||
syntax enable
|
||||
syntax on
|
||||
|
||||
" Set syntax highlight for specified file types
|
||||
@@ -147,12 +144,14 @@ let g:syntastic_check_on_open = 1
|
||||
let g:syntastic_check_on_wq = 0
|
||||
|
||||
" Change mode cursor color in xterm
|
||||
" Avoid spawning shell (silent !echo) which causes garbage output in some terminals.
|
||||
" t_EI is sent on VimEnter automatically when leaving insert mode context.
|
||||
if &term =~ "xterm-256color\\|rxvt"
|
||||
let &t_SI = "\033]Pl00d7ff\033\\"
|
||||
let &t_SR = "\033]Plf00000\033\\"
|
||||
let &t_EI = "\033]Plff8708\033\\"
|
||||
silent !echo -ne "\033]Pla0522d\033\\"
|
||||
autocmd VimLeave * silent !echo -ne "\033]Plc1ffc1\033\\"
|
||||
autocmd VimEnter * let &t_EI = "\033]Plff8708\033\\" | redraw
|
||||
autocmd VimLeave * try | call writefile(["\033]Plc1ffc1\033\\"], '/dev/tty') | catch | endtry
|
||||
endif
|
||||
|
||||
" Show tabs and trails
|
||||
|
||||
Reference in New Issue
Block a user