-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
276 lines (242 loc) · 8.68 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
My vim REPO
====================
Installation
====================
git clone https://github.com/justrajdeep/dotvim.git ~/.vim
OR
git clone [email protected]:justrajdeep/dotvim.git ~/.vim
OR (FOR READ-ONLY ACCESS)
git clone git://github.com/justrajdeep/dotvim.git ~/.vim
====================
Symbolic Links
====================
ln -fs ~/.vim/vimrcNV ~/.vimrc
make sure you have cloned pathogen first
ln -fs ~/.vim/bundle/pathogen/autoload/pathogen.vim ~/.vim/autoload/pathogen.vim
ln -fs ~/.vim/bundle/plug/plug.vim ~/.vim/autoload/plug.vim
====================
Plugins Install
====================
git submodule add -b <branch> <path-to git repo> <local submodle-path>
git config -f .gitmodules submodule.<submodule-path>.update rebase
git add .gitmodules == this will add the submodule
This will create a file .gitmodules commit it by
git commit -m "Installing <plugin name> plugin"
git push
====================
Updating the submodule
====================
git submodule update --init
git submodule foreach --recursive git pull origin master
git submodule foreach --recursive git submodule update --init
git pull && git submodule init && git pull --recurse-submodules && git submodule update --recursive
git submodule update --recursive
git submodule foreach --recursive git reset --hard
or
cd into the submodule folder
git checkout master
git pull
====================
Cloning
====================
git pull
====================
Add the submodule
====================
git submodule init
====================
Get the submodule
====================
git submodule update
============================
git update empty submodules
============================
git submodule update --init --recursive
#if something in submodule
#git submodule update --init
----------------------------------------
GIT:
If you get certificate error add
git config --global http.sslVerify false
if you get login
git config --global push.default simple
to go with the login
git config --global push.default matching
Other git configuration
git config --global user.name "Rajdeep"
git config --global user.email [email protected]
git config --global color.ui auto
====================
Removing Submodule +
====================
Remove the submodule's entry in the .gitmodules file.
Remove the submodule's entry in the .git/config
Remove the path created for the submodule (dont include trailing slash)
git rm --cached <path>
rm -rf .git/modules/submodule_name
rm -rf <path to submodule>
///ALTERNATE
git submodule deinit <path>
git rm -r <path>
Installing Monaco Font
the font is also available in --> wget -q http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf
cp Monaco_Linux.ttf to ~/.fonts (if dir is not there create one)
$ cd ~/.fonts
$ mkfontscale
$ mkfontdir
$ ttmkfdir -o fonts.dir
$ fc-cache -f -v ~/.fonts
$ fc-cache -f -v
$ fc-match NonExistingFont
Install Powerline
pip -v install --user git+https://github.com/Lokaltog/powerline
pip install -e --user {path_to_powerline}
ln -s {path_to_powerline}/scripts/powerline ~/.local/bin
cd ~/.fonts && wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf && fc-cache -vf ~/.fonts
cd ~/.config/fontconfig/conf.d && wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
install patched fonts from https://github.com/Lokaltog/powerline-fonts
copy fonts/10-powerline-symbols.conf to ~/.fonts.conf.d/ and ~/.config/fontconfig/conf.d/ (if dir is not present create one)
Check if it is installed correctly
$ fc-list | grep Monaco
---------------------------
Adding viva support
---------------------------
ln -fs /home/vim-nv/plugins/viva ~/.vim/bundle/viva
USING vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
USING NEOBUNDLE
git clone https://github.com/Shougo/neobundle.vim neobundle_bundle/neobundle
cd bundle
ln -fs /home/vim-nv nvidia
ln -fs /home/vim-nv/plugins/nvbug nvbug
Then install
===========
Help on Git
===========
Git initialization
git init
git add .
git commit -m "Initial commit"
git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"
git remote add origin https://github.com/username/Hello-World.git
git push -u origin master
Debugging VIM
-V9myVimLog
================
GOOD vim sources
================
https://github.com/uhub/awesome-viml
https://github.com/svermeulen/VimDriver
https://github.com/terryma/dotfiles
https://github.com/venkatapraveenr/dotvim2
https://github.com/joedicastro/dotfiles
http://bling.github.io/blog/2013/06/02/unite-dot-vim-the-plugin-you-didnt-know-you-need/
https://github.com/bling/dotvim
http://dysfunctionalprogramming.co.uk/blog/2013/08/15/fight-with-tools/
https://github.com/tpope/tpope
https://github.com/robertmeta/vim-files
https://github.com/square/maximum-awesome
https://github.com/SirVer/ultisnips
https://vimcolorschemetest.googlecode.com/svn/html/index-c.html
http://vimcolorschemetest.googlecode.com/svn/html/index-html.html
https://github.com/thoughtstream/Damian-Conway-s-Vim-Setup
https://github.com/aaronbieber/dotvim
https://github.com/L0stSoul/vim-config
https://github.com/justinmk/config/blob/master/
http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/
https://github.com/mutewinter/dot_vim
https://bitbucket.org/sjl/dotfiles/src/tip/vim/vimrc
https://github.com/carlhuda/janus
https://bitbucket.org/sjl/dotfiles/src/e6f6389e598f33a32e75069d7b3cfafb597a4d82/vim/vimrc#cl-2291
https://github.com/xavierartot/code-useful/blob/master/dot/.vimrc
https://github.com/inkarkat/vimrc
http://vimconf.vim-jp.org/2014/reports/
https://github.com/rdlugosz/dotfiles/blob/master/vimrc
https://rawgit.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg
http://www.vimbits.com/bits
https://github.com/dbakker/vimfiles
http://got-ravings.blogspot.ie/2008/08/vim-pr0n-making-statuslines-that-own.html
http://hjortland.org/files/cheatball.pdf
https://vim.zeef.com/andrew.krawchyk
http://got-ravings.blogspot.in/2008/08/vim-pr0n-making-statuslines-that-own.html
https://sunaku.github.io/switching-from-jedit-to-vim.html
http://paulherron.com/blog/vim_cheatsheet/
https://github.com/martin-svk/dot-files
https://www.reddit.com/r/vim/comments/4dlacf/vim_essentials_articles_videos_ressources/
https://github.com/zolrath/dot_vim
http://howivim.com/
https://github.com/jeromedalbert/dotfiles/blob/master/.vim/init.vim
=======
Windows
=======
https://bintray.com/veegee/generic/vim_x64/view
ftp://ftp.vim.org/pub/vim/pc/
http://cream.sourceforge.net/
https://tuxproject.de/projects/vim/
======
colors
======
http://vimcolors.com/
http://cocopon.me/app/vim-color-gallery/
NVIDIA specific installs
=========================
cd ~/.vim/bundle
ln -fs /home/vim-nv nvidia
ln -fs /home/vim-nv/plugins/nvbug nvbug
mkdir -p ~/.vim/nvbug
touch ~/.vim/nvbug/bug_history
===================
INSTALL VIM LOCALLY
===================
use mercurial to clone the TOT
mkdir -p ~/vim_latest
hg clone https://code.google.com/p/vim/ ~/vim_latest
cd ~/vim_latest
cp ~/.vim/my_config .
\make clean
./my_config
\make
\make install
------------------------
update to latest version
------------------------
cd ~/vim_latest
hg pull
hg update
========================
installing youcompleteme
========================
if you get an error saying that PYTHON libs are missing or something like that
open install.sh search for "function install"
add the python_finder to the else cmake line also.
=================================
GIT how to list all tracked files
=================================
git ls-tree -r master --name-only
===========================
git how to make a submodule
===========================
Get a fresh copy of the repository to split.
$ git clone <git repository A url>
$ cd <git repository A directory>
The current folder will be the new repository so remove the current remote.
$ git remote rm origin
Extract history of the desired folder and commit it
$ git filter-branch --subdirectory-filter <directory 1> -- --all
Create your repository online and push your new repository!
$ git remote add origin <git repository B url>
$ git push -u origin master
Now we want to delete traces (files and commit history) of <git repository B> from <git repository A>.
$ git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <directory 1> -r' --prune-empty --tag-name-filter cat -- --all
===================================
git how to get a list of submodules
===================================
git config -f .gitmodules --list
==========
| neovim |
==========
\make distclean
env CC=/home/utils/gcc-4.8.2/bin/gcc CXX=/home/utils/gcc-4.8.2/bin/g++ \make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX:PATH=$HOME"
\make install
# vim: set filetype=README syntax=git: