0%

Atom配置与使用

Install Atom on Ubuntu

sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom

Setting Proxy

vim ~/.atom/.apm/.apmrc

http-proxy=http://127.0.0.1:1080
https-proxy=http://127.0.0.1:1080
strict-ssl=false

Theme

  • Dracula UI
  • Monokai Syntax

Package

  • Emmet
  • File Icons
  • Color Picker
  • Minimap
  • pigments
  • Beautify
  • Atom Linter
  • JavaScript Snippets
  • CSS Comb
  • Git plus
  • Remote Edit
  • Autocomplete-python
  • Linter-flake8
  • Python-tools
  • vim-mode-plus
    • ex-mode
    • relative-numbers
  • terminal-plus

Configuration

vim

Modify the keymap

map esc to jj, add the last line in ./atom/packages/vim-mode-plus/keymaps/vim-mode-plus.cson

# insert
# -------------------------
'atom-text-editor.vim-mode-plus.insert-mode':
'ctrl-w': 'editor:delete-to-beginning-of-word'
'ctrl-u': 'editor:delete-to-beginning-of-line'
'ctrl-y': 'vim-mode-plus:copy-from-line-above'
# disabled for compatibility with the common binding for going to the end of the line
# 'ctrl-e': 'vim-mode-plus:copy-from-line-below'
# 'ctrl-a': 'vim-mode-plus:insert-last-inserted'
'ctrl-r': 'vim-mode-plus:insert-register'
'ctrl-o': 'vim-mode-plus:activate-normal-mode-once'
'j j': 'vim-mode-plus:activate-normal-mode'