-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_notes
More file actions
86 lines (65 loc) · 2.45 KB
/
setup_notes
File metadata and controls
86 lines (65 loc) · 2.45 KB
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
## clipboard sharing
install xquartz (need this for x11 forwarding!)
run xquartz look inside the preferences, ensure clipboard sharing is enabled
install xclip
add
<key>LSUIElement</key>
<true/>
to the end of /Applications/Utilities/XQuartz.app/Contents/Info.plist
this hides XQuartz while it's running
have to run xterm and quit initially to get clipboard sharing to work
if you run echo "test"|xclip -i -selection clipboard it should get synced
make sure vim is compiled with x11 support and set its register to unnamedplus (the clipboard)
add XQuartz to the startup items
need to make sure xterm runs and then exits
add this to your ~/.ssh/config:
ForwardX11 yes
ForwardX11Trusted yes
This will ensure that X11 sessions don't time out
## vm
increase number of cpus
increase memory
add host-only adapter and set static ip on it
add nat adapter so it can connect to the internet
ssh to the host only adapter so the connection doesn't get interrupted when you unplug
## building
modify ib so that it prints the compiler commands
## for higher parallelism
+++ b/native/params.cfg
@@ -6,4 +6,4 @@
#####################################################################################
toolchain_root = '/usr/local/gcc-linaro-6.1.1-2016.08-x86_64_arm-linux-gnueabihf'
-parallel_recipes = '3'
+parallel_recipes = '100'
## vim
.vim/autoload:
pathogen.vim
[john@john-vm bundle]$ ls
ack.vim ctrlp.vim fzf.vim nerdcommenter nerdtree vim-airline vim-airline-themes vim-colors-solarized vim-fugitive YouCompleteMe
[john@john-vm bundle]$
## youcompleteme
We need to use an older version because our codebase only works with clang-3.8 right now.
cd ~/.vim/bundle
git clone https://github.com/Valloric/YouCompleteMe.git
git checkout e332cdb2a0c8599dead1d362b87bb9fb79c9a955
change first line of install.py to
#!/usr/bin/env python3
run git submodule update --init --recursive
in third_party/ycmd/cpp/CMakeLists.txt, go to line 208, and add below
set(Python_ADDITIONAL_VERSIONS 3.4)
then go to ~/.vim/bundle/YouCompleteMe
run ./install.py --clang-completer
## ctrl-h in vim
in iterm:
Edit -> Preferences -> Keys
Press +
Press Ctrl+h as Keyboard Shortcut
Choose Send Escape Sequence as Action
Type [104;5u for Esc+
then in your ssh session:
(this was the original command from the internet)
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti
however kbs was already set to \177. I changed kbs= to kbs=\E[104;5u
and then reran tic
seemed to work.