요즘 emacs나 vi에디터를 많이 쓰면서 control키를 새끼 손가락으로 누르는 일이 많아졌다.

보통의 키보드에는 control키가 왼쪽 아래 존재하다 보니 새끼 손가락이 많이 무리가 간다.

 

옛날의 unix키보드처럼 배열을 바꿔서 사용해보려고 한다.

 

# 먼저 아래 파일을 Editor로 연다.
$ sudo vi /etc/default/keyboard

# XKBOPTIONS을 찾아 ctrl:nocaps를 써서 Caps Lock키를 추가적으로 Control키로 사용하도록 한다.
# 또는 ctrl:swapcaps를 써서 Caps Lock키와 Control키의 기능을 바꾼다.

XKBOPTIONS="ctrl:nocaps"

# 다음으로 변경된 내용이 반영되도록 아래 명령어를 실행한다.
$sudo dpkg-reconfigure keyboard-configuration

 

1. Linux Outliner (Windows도 가능)

https://www.giuspen.com/cherrytree/#downl

  1. Install wget and Cherrytree dependencies.

  2.  

    sudo apt install wget python-dbus python-chardet python-enchant libcanberra-gtk-module libgtksourceview2.0-0 libgtksourceview2.0-common python-cairo python-gobject-2 python-gtk2 python-numpy

  3. Download python-gtksourceview2.

    wget http://ftp.br.debian.org/debian/pool/main/p/pygtksourceview/python-gtksourceview2_2.10.1-3_amd64.deb

  4. Install python-gtksourceview2.

    sudo dpkg -i python-gtksourceview2_2.10.1-3_amd64.deb

  5. Download Cherrytree.

    wget http://www.giuspen.com/software/cherrytree_0.38.9-0_all.deb

  6. Install Cherrytree.

    sudo dpkg -i cherrytree_0.38.9-0_all.deb

 

cherrytree – giuspen

A hierarchical note taking application, featuring rich text and syntax highlighting, storing data in a single xml or sqlite file. Written by Giuseppe Penone (aka giuspen). The user manual online html and downloadable ctb written and maintained by Ellie Bor

www.giuspen.com

https://stackedit.io/app

 

 

StackEdit

 

stackedit.io

 

 

StackEdit

 

stackedit.io

https://www.tagspaces.org/

 

TagSpaces - Your versatile file organizer

TagSpaces is an open source platform for personal data management. With TagSpaces you can manage and organize the files and folders on your pc, mac or smart phone.

www.tagspaces.org

https://joplinapp.org/

 

Joplin - an open source note taking and to-do application with synchronisation capabilities

Hacktoberfest 🎃 is back this year again for our great pleasure ^^ To participate go to https://hacktoberfest.digitalocean.com/, log in (with you GitHub account) and you are ready to get in. Next, go dive into the Joplin issues list labelled "Hacktoberfest"

joplinapp.org

2. Albert

맥의 알프레드와 같은 역할을 한다.

Ctrl + tab키로 단축키를 지정해놓으면 편리하다.

https://software.opensuse.org/download.html?project=home:manuelschneid3r&package=albert

 

Install package home:manuelschneid3r / albert

Packages for xUbuntu 19.10: albert_0.16.1_amd64.deb

software.opensuse.org

3. 한글폰트 설정

나눔글꼴

$ sudo apt install fonts-nanum

나눔고딕 코딩체

$ sudo apt install fonts-nanum-coding

 

4. shutter (Capture 프로그램)

sudo add-apt-repository ppa:linuxuprising/shutter

sudo apt install shutter

sudo apt remove --auto-remove shutter

 

4. Hangul Input Method

https://nimf-i18n.gitlab.io/ko/installation/

sudo apt-add-repository ppa:hodong/nimf -y

sudo apt update

sudo apt-get install im-config zenity

sudo apt install nimf nimf-libhangul -y

im-config -n nimf

 

5. Notebook Battery Saving

sudo add-apt-repository ppa:linrunner/tlpsudo

apt-get updatesudo

apt-get install tlp tlp-rdw

(씽크패드 유저라면 아래 내용 추가)sudo apt-get install tp-smapi-dkms acpi-call-dkms

 

6. ZSH Theme설정

powerlevel10k

https://github.com/romkatv/powerlevel10k

 

romkatv/powerlevel10k

A fast reimplementation of Powerlevel9k ZSH theme. Contribute to romkatv/powerlevel10k development by creating an account on GitHub.

github.com

 

7. XFCE Terminal Theme

https://www.maketecheasier.com/best-xfce-terminal-themes/

 

5 XFCE Terminal Themes You Should Try - Make Tech Easier

There are numerous ways to spruce up the XFCE terminal. For those who want to tweak their terminal, here are five great XFCE terminal themes to check out.

www.maketecheasier.com

https://github.com/nthirtyone/mariana-scheme

 

nthirtyone/mariana-scheme

Colour scheme from ST3 for XFCE4 Terminal. Contribute to nthirtyone/mariana-scheme development by creating an account on GitHub.

github.com


8. emacs최신버전(28버전)설치

Repository를 추가 한다.

[28버전]

sudo add-apt-repository ppa:ubuntu-elisp/ppa 
sudo apt-get update 
sudo apt install emacs-snapshot

[25버전]

sudo add-apt-repository ppa:kelleyk/emacs 
sudo apt-get update 
sudo apt install emacs25

[26버전]

sudo add-apt-repository ppa:kelleyk/emacs 
sudo apt-get update 
sudo apt install emacs26

[기본 에디터 변경]

sudo update-alternatives --config emacs

user@user-desktop:~$ update-alternatives --config emacs
There are 2 choices for the alternative emacs (providing /usr/bin/emacs).

  Selection    Path                     Priority   Status
------------------------------------------------------------
  0            /usr/bin/emacs-snapshot   27        auto mode
* 1            /usr/bin/emacs-snapshot   27        manual mode
  2            /usr/bin/emacs24-x        27        manual mode

ssl 인증서(*.crt)파일을 준비한다.

 

# trust anchor localhost.crt

# trust extract-compat

 

/usr/lib/python3.7/site-packages/pacman_mirrors/functions/ 아래에

httpFn.py를 수정한다.

 

context = ssl._create_unverified_context()

response = urllib.request.urlopen(requests, data=data.encode('utf-8'), context=context)

 

References

General

  • Nearly all commands can be preceded by a number for a repeat count. eg. 5dd delete 5 lines
  • <Esc> gets you out of any mode and back to command mode
  • Commands preceded by : are executed on the command line at the bottom of the screen
  • :help help with any command

Navigation

  • Cursor movement: ←h ↓j ↑k l→
  • By words:
    • w next word (by punctuation); W next word (by spaces)
    • b back word (by punctuation); B back word (by spaces)
    • e end word (by punctuation); E end word (by spaces)
  • By line:
    • 0 start of line; ^ first non-whitespace
    • $ end of line
  • By paragraph:
    • { previous blank line; } next blank line
  • By file:
    • gg start of file; G end of file
    • 123G go to specific line number
  • By marker:
    • mx set mark x'x go to mark x
    • '. go to position of last edit
    • ' ' go back to last point before jump
  • Scrolling:
    • ^F forward full screen; ^B backward full screen
    • ^D down half screen; ^U up half screen
    • ^E scroll one line up; ^Y scroll one line down
    • zz centre cursor line

Editing

  • u undo; ^R redo
  • . repeat last editing command

Inserting

All insertion commands are terminated with <Esc> to return to command mode.

  • i insert text at cursor; I insert text at start of line
  • a append text after cursor; A append text after end of line
  • o open new line below; O open new line above

Changing

All change commands except r and R are terminated with <Esc> to return to command mode.

  • r replace single character; R replace multiple characters
  • s change single character
  • cw change word; C change to end of line; cc change whole line
  • c<motion> changes text in the direction of the motion
  • ci( change inside parentheses (see text object selection for more examples)

Deleting

  • x delete char
  • dw delete word; D delete to end of line; dd delete whole line
  • d<motion> deletes in the direction of the motion

Cut and paste

  • yy copy line into paste buffer; dd cut line into paste buffer
  • p paste buffer below cursor line; P paste buffer above cursor line
  • xp swap two characters (x to delete one character, then p to put it back after the cursor position)

Blocks

  • v visual block stream; V visual block line; ^V visual block column
    • most motion commands extend the block to the new cursor position
    • o moves the cursor to the other end of the block
  • d or x cut block into paste buffer
  • y copy block into paste buffer
  • > indent block; < unindent block
  • gv reselect last visual block

Global

  • :%s/foo/bar/g substitute all occurrences of "foo" to "bar"
    • % is a range that indicates every line in the file
    • /g is a flag that changes all occurrences on a line instead of just the first one

Searching

  • / search forward; ? search backward
  • * search forward for word under cursor; # search backward for word under cursor
  • n next match in same direction; N next match in opposite direction
  • fx forward to next character xFx backward to previous character x
  • ; move again to same character in same direction; , move again to same character in opposite direction

Files

  • :w write file to disk
  • :w name write file to disk as name
  • ZZ write file to disk and quit
  • :n edit a new file; :n! edit a new file without saving current changes
  • :q quit editing a file; :q! quit editing without saving changes
  • :e edit same file again (if changed outside vim)
  • :e . directory explorer

Windows

  • ^Wn new window
  • ^Wj down to next window; ^Wk up to previous window
  • ^W_ maximise current window; ^W= make all windows equal size
  • ^W+ increase window size; ^W- decrease window size

Source Navigation

  • % jump to matching parenthesis/bracket/brace, or language block if language module loaded
  • gd go to definition of local symbol under cursor; ^O return to previous position
  • ^] jump to definition of global symbol (requires tags file); ^T return to previous position (arbitrary stack of positions maintained)
  • ^N (in insert mode) automatic word completion

Show local changes

Vim has some features that make it easy to highlight lines that have been changed from a base version in source control. I have created a small vim script that makes this easy: http://github.com/ghewgill/vim-scmdiff

+ Recent posts