Browse code

vim: vimrc - tags, tab->spaces, some bindings

Change-Id: I1a56f5f956cec3c708ba36e7bae22a561c1f3bea
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1317
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>

Alexey Makhalov authored on 2016/08/25 08:15:38
Showing 1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 Summary:	Text editor
4 4
 Name:		vim
5 5
 Version:	7.4
6
-Release:	5%{?dist}
6
+Release:	6%{?dist}
7 7
 License:	Charityware
8 8
 URL:		http://www.vim.org
9 9
 Group:		Applications/Editors
... ...
@@ -45,10 +45,18 @@ set nocompatible
45 45
 set backspace=2
46 46
 set ruler
47 47
 syntax on
48
+set tags=./tags;/
48 49
 color desert
49 50
 if (&term == "iterm") || (&term == "putty")
50 51
   set background=dark
51 52
 endif
53
+" Binds
54
+nmap <F2> :w<CR>
55
+imap <F2> <Esc>:w<CR>
56
+nmap <F10> :q!<CR>
57
+nmap <Esc><Esc> :q<CR>
58
+" Use 4 space characters instead of tab for python files
59
+au BufEnter,BufNew *.py set tabstop=4 shiftwidth=4 expandtab
52 60
 
53 61
 " End /etc/vimrc
54 62
 EOF
... ...
@@ -144,13 +152,15 @@ EOF
144 144
 %{_bindir}/vimdiff
145 145
 
146 146
 %changelog
147
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.4-5
148
--	GA - Bump release of all rpms
147
+*   Wed Aug 24 2016 Alexey Makhalov <amakhalov@vmware.com> 7.4-6
148
+-   vimrc: Added tags search, tab->spaces and some bindings
149
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.4-5
150
+-   GA - Bump release of all rpms
149 151
 *   Thu Jul 16 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
150 152
 -   Added profile related files in minimal vim package.
151 153
 *   Tue Jun 30 2015 Touseef Liaqat <tliaqat@vmware.com> 7.4-3
152 154
 -   Pack extra files separately, to make vim package small.
153
-*	Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 7.4-2
154
--	Disable debug package. Use 'desert' colorscheme.
155
-*	Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 7.4-1
156
--	Initial build.	First version
155
+*   Fri Jun 19 2015 Alexey Makhalov <amakhalov@vmware.com> 7.4-2
156
+-   Disable debug package. Use 'desert' colorscheme.
157
+*   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 7.4-1
158
+-   Initial build. First version