commit c3699914f587bedaaef0093d438051cc77d35fc3
parent 04b4b68eb5074ed1280bc5ed8edff4c7e9820d26
Author: Remy Noulin (Spartatek) <remy.noulin@spartatek.se>
Date: Sun, 16 Jul 2017 12:39:03 +0200
fix vim configuration
debian/1-system.sh | 4 ++++
debian/vimrc.local | 20 ++++++++++++++++++++
dotfiles/.vimrc | 4 ++--
3 files changed, 26 insertions(+), 2 deletions(-)
Diffstat:
3 files changed, 26 insertions(+), 2 deletions(-)
diff --git a/debian/1-system.sh b/debian/1-system.sh
@@ -9,6 +9,10 @@ apt-get upgrade -y
apt-get remove -y vim-tiny
apt-get install -y fail2ban curl wget tmux build-essential ruby tree apt-transport-https screen ranger mc vim ncftp p7zip-full rtorrent pbzip2 atop htop glances tcc sshuttle finger cmatrix jigdo-file openssh-server ntp kpcli iftop iotop unison qrencode python-nose python-nosexcover apt-file libpcre3-dev graphviz pandoc elinks w3m links nmap figlet zip lynx apt-src cowsay sl tig rdiff-backup imagemagick graphicsmagick emacs24-nox llgal moreutils pwgen unattended-upgrades rsync ca-certificates pigz pixz astyle uncrustify unifdef valgrind doxygen fish gdb lcov python-pip
+# vim
+sed -i 's/"syntax on/syntax on/g' /etc/vim/vimrc
+cp vimrc.local /etc/vim/vimrc.local
+
# doitlive
pip install doitlive
diff --git a/debian/vimrc.local b/debian/vimrc.local
@@ -0,0 +1,20 @@
+set nocompatible
+set history=10000
+set cul
+set so=20
+set ic
+set foldmethod=syntax
+set hls
+set sidescroll=1
+set autowrite
+set autoread
+set incsearch
+set autoindent
+set background=dark
+set list
+set listchars=tab:\|\
+
+set undofile " Save undo's after file closes
+set undodir=$HOME/.vim/undo " where to save undo histories
+set undolevels=1000 " How many undos
+set undoreload=10000 " number of lines to save for undo
diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc
@@ -1,4 +1,4 @@
-set nocompatible " be iMproved, required
+" in /etc/vim/vimrc.local - set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
@@ -62,7 +62,7 @@ filetype plugin indent on " required
" Put your non-Plugin stuff after this line
" Pathogen
-execute pathogen#infect()
+"execute pathogen#infect()
map <C-n> :NERDTreeToggle<CR>